const options = {
    method: 'POST',
    headers: {
        Authorization: ' Bearer sk-xfyygeyqnbphiwjwxliwotonpaihynreflkllrtmxnloavvq', 
        'Content-Type': 'application/json'
    },
    body: JSON.stringify({
        "model": "Qwen/QwQ-32B",
        "messages": [{
            "role": "user",
            "content": "你是谁"
        }]
    })
};

fetch('https://api.siliconflow.cn/v1/chat/completions', options)
    .then(response => response.json())
    .then(response => {
        console.log("完整响应：", response);
        console.log("回复内容：", response.choices[0].message.content);
        console.log("结束原因：", response.choices[0].finish_reason);
        console.log("使用的模型：", response.model);
        
    })
    .catch(err => console.error(err));